# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

urlpatterns = patterns('',


# WIKI

    (r'^$', 'wiki.views.home'),
    (r'^(?P<menu_name>[^/]+)/(?P<page_name>[^/]+)/edit/$', 'wiki.views.edit_page'),
    (r'^(?P<menu_name>[^/]+)/(?P<page_name>[^/]+)/save/$', 'wiki.views.save_page'),
    (r'^(?P<menu_name>[^/]+)/(?P<page_name>[^/]+)/$', 'wiki.views.view_page'),

# ARTICLES

    (r'^(?P<menu_name>[^/]+)/articles/(?P<page_name>[^/]+)/$', 'wiki.views.article_view'),
    (r'^(?P<menu_name>[^/]+)/articles/(?P<page_name>[^/]+)/edit/$', 'wiki.views.article_edit'),
    (r'^(?P<menu_name>[^/]+)/articles/(?P<page_name>[^/]+)/save/$', 'wiki.views.article_save'),

# INSTRUMENTS

    (r'^(?P<menu_name>[^/]+)/instruments/(?P<page_name>[^/]+)/$', 'wiki.views.instrument_view'),
    (r'^(?P<menu_name>[^/]+)/instruments/(?P<page_name>[^/]+)/edit/$', 'wiki.views.instrument_edit'),
    (r'^(?P<menu_name>[^/]+)/instruments/(?P<page_name>[^/]+)/save/$', 'wiki.views.instrument_save'),

# TECH

    (r'^(?P<menu_name>[^/]+)/tech/(?P<page_name>[^/]+)/$', 'wiki.views.tech_view'),
    (r'^(?P<menu_name>[^/]+)/tech/(?P<page_name>[^/]+)/edit/$', 'wiki.views.tech_edit'),
    (r'^(?P<menu_name>[^/]+)/tech/(?P<page_name>[^/]+)/save/$', 'wiki.views.tech_save'),
    
# NEWS

    (r'^(?P<menu_name>[^/]+)/news/(?P<page_name>[^/]+)/$', 'wiki.views.news_view'),
    (r'^(?P<menu_name>[^/]+)/news/(?P<page_name>[^/]+)/edit/$', 'wiki.views.news_edit'),
    (r'^(?P<menu_name>[^/]+)/news/(?P<page_name>[^/]+)/save/$', 'wiki.views.news_save'),

)
